package org.ww.cart.feign;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.*;
import org.ww.common.utils.R;

import java.math.BigDecimal;
import java.util.List;
import java.util.Map;

/**
 * @program: gmall
 * @description: 商品feign
 * @author: ww
 * @create: 2024-05-17 16:24
 **/
@FeignClient("gmall-product")
public interface ProductFeignClient {

    @RequestMapping("/product/skuinfo/info/{skuId}")
    R getSkuInfo(@PathVariable("skuId") Long skuId);

    @GetMapping("/product/skusaleattrvalue/stringlist/{skuId}")
    List<String> getSkuSaleAttrValues(@PathVariable("skuId") Long skuId);


    @PostMapping("/product/skuinfo/price")
    R getPrice(@RequestBody List<Long> skuIds);

}
